//
//  TableShowImageCell.swift
//  jhf
//
//  Created by 计海峰 on 2021/10/13.
//  Copyright © 2021 CocoaPods. All rights reserved.
//

import UIKit
import RxSwift

public class TableShowImageCell: UITableViewCell {
    
    let stepBag = DisposeBag()
    
    var showImageView = UIImageView.init().then {
        /// 给个默认灰色图片
        $0.image = UIImage.init(color: UIColor(hex: "#f3f4f5"), size: CGSize(1, 1))
        $0.contentMode = .scaleAspectFill
        $0.isUserInteractionEnabled = true
    }

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        layoutViews()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    public override func bindTo(_ info: Any?) {
        self.info = info
        loadData()
    }
    
    public override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

    deinit {
        debugPrint("💔 TableShowImageCell deinit")
    }
    
}
